<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@taglib  prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script type="text/javascript" src="../js/jquery-3.1.0.js"></script>
<script type="text/javascript" src="../js/jquery.min.js"></script>
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/diyUpload/css/webuploader.css">
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/diyUpload/css/diyUpload.css">
<script type="text/javascript" src="${pageContext.request.contextPath}/diyUpload/js/webuploader.html5only.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/diyUpload/js/diyUpload.js"></script>


<script type="text/javascript">
	$(function() {
		var id=$("#userid").val();
		$("#test").diyUpload({
			url:'../AdminServlet?method=updateAdmin&userid='+$("#userid").val(),
			success:function( data ) {
				console.info( data );
			},
			error:function( err ) {
				console.info( err );	
			}
		});
		$('#as').diyUpload({
			url:'../AdminServlet?method=updateAdmin',
			success:function( data ) {
				console.info( data );
			},
			error:function( err ) {
				console.info( err );	
			},
			buttonText : '选择文件',
			chunked:true,
			chunkSize:512 * 1024,
			fileNumLimit:50,
			fileSizeLimit:500000 * 1024,
			fileSingleSizeLimit:50000 * 1024,
			accept: {}
		});
		 $(".diyStart").click(function(){
			$("#box").css("height","50px");
		}) 
	})
	</script>
	<style type="text/css">
	*{
	margin: 0px;
	padding: 0px;
	}
	#box{ margin:10px auto; width:150px; min-height:25px; background:#f4f4f4}
	</style>
</head>
<body>
	<div id="div_information" style="width: 700px;height:400px;margin: 50px auto;border: solid 2px red;">
		<c:forEach items="${admin}" var="ad">
			<div id="div_portrait" style="float: left;"><img style="width: 200px;height: 230px;" src="${ad.portrait }">
			<div id="box">
	<div id="test" class="${ad.userid}" ></div>
            </div>
			</div>
			<input type="hidden" id="userid" name="userid" value="${ad.userid}">
			<div id="per_div" style="float: left;border:solid 2px blue;height:360px;width: 320px;">
			<div style="border-bottom:1px dashed #000;width: 220px;height:30px;margin: 0 auto;line-height: 30px;margin-top: 20px;font-family: '宋体';">姓名:&nbsp&nbsp${ad.username }</div>
			<div style="border-bottom:1px dashed  #000;width: 220px;height:30px;margin: 0 auto;line-height: 30px;margin-top: 20px;font-family: '宋体';">职位:&nbsp&nbsp${ad.rolelist }</div>
			<div style="border-bottom:1px dashed  #000;width: 220px;height:30px;margin: 0 auto;line-height: 30px;margin-top: 20px;font-family: '宋体';">邮箱:&nbsp&nbsp${ad.email }</div>
			<div style="border-bottom:1px dashed  #000;width: 220px;height:30px;margin: 0 auto;line-height: 30px;margin-top: 20px;font-family: '宋体';">注册时间:&nbsp${ad.addtime }</div>
			<c:if test="${ad.lastlogin != '暂无'}">
			<div style="border-bottom:1px dashed  #000;width: 220px;height:30px;margin: 0 auto;line-height: 30px;margin-top: 20px;font-family: '宋体';">最近上线:&nbsp${ad.lastlogin }</div>
			</c:if>
			</div>
				</c:forEach>
		</div>
		
</body>
</html>